const aModule = {
  namespaced: true,
  state: () => ({
    Aname: 'aModule'
  }),
  mutations: {
    AchangeName(state, name) {
      state.Aname = name
    }
  },
  actions: {
    AasyChangeName({ commit, rootState }, name) {
      console.log('rootState', rootState.name)
      setTimeout(() => {
        commit('AchangeName', name)
      }, 2000)
    }
  },
  getters: { }
}

export default aModule
